package com.jdrx.sw.sewage.beans.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "行为分析新增参数")
@Data
@Builder
public class MtLogAddDTO implements Serializable {
	private static final long serialVersionUID = -2603994255487387759L;

	@ApiModelProperty(value = "租户id")
	private Long tenantId;
	
	@ApiModelProperty(value = "租户名称")
	private String tenant;
	
	@ApiModelProperty(value = "厂站id")
	private Long stationId;

	@ApiModelProperty(value = "厂站名称")
	private String station;
	
	@ApiModelProperty(value = "人员id")
	private Long userId;

	@ApiModelProperty(value = "人员名称")
	private String user;

	@ApiModelProperty(value = "事件名称")
	private String event;

	@ApiModelProperty(value = "终端名称")
	private String terminal;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	@Builder.Default
	private LocalDateTime createAt = LocalDateTime.now();
	
	@Tolerate
	public MtLogAddDTO() {
		
	}
}